import Vue from 'vue'
import App from './App'

import common from './utils/common'
import { login } from './utils/login.js'

import uView from "uview-ui";
Vue.use(uView);

Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$showToast = common.showToast
Vue.prototype.$showModal = common.showModal
Vue.prototype.$link = common.navigateTo
Vue.prototype.$makePhoneCall = common.makePhoneCall
Vue.prototype.$isLogin = common.isLogin
Vue.prototype.$login = login
Vue.prototype.$isBindPhone = common.isBindPhone
Vue.prototype.$updataUserInfo = common.updataUserInfo
Vue.filter('formatMoney', common.formatMoney) 
Vue.filter('phonePartOf', common.phonePartOf) 
Vue.filter('namePartOf', common.namePartOf) 
Vue.filter('cardNumPartOf', common.cardNumPartOf) 
Vue.filter('avatar', common.getAvatar) 
Vue.filter('formatTime', common.subTime) 

const app = new Vue({
    ...App
})

app.$mount()
